package org.luo.api.user;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.luo.common.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service")
public interface UserApi {
    @GetMapping("/user/user/list")
    Result<Page<User>> list(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize);

    @GetMapping("/user/user/userInfo")
    Result<User> userInfo();
}
